<%-- 
    Document   : newjsp
    Created on : 20-10-2012, 09:42:37
    Author     : Tran Nguyen Anh Tu
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@page import="javax.enterprise.inject.Model"%>
<%@page import="Model.ObjectBean.ViewBean.*"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
             
        <title>Green</title>
        <link rel="stylesheet" type="text/css" href="layout.css" />   
        <jsp:useBean id="status" class="LoginStatus" scope="session"/>
        
      

    </head>

    <body>
        <center>
            <%--HEADER TABLE--%>
            <table class="header" >
                <tr>
                    <td id="header-logo" />
                    <td id="header-login"> 
                        <%if(status.getStatus().equals("true")){%>
                        <jsp:include page="../WEB-INF/ComponentJSP/HeaderJSP/Logged.jsp"/>   
                        <%} else {%>
                        <jsp:include page="../WEB-INF/ComponentJSP/HeaderJSP/LoginJSP.jsp"/>   
                        <%}%>  
                    </td>
                </tr>
            </table>
            <%--BODY TABLE--%>
            <table class="body">
                <%--TOP BAR: BOOK | EBOOK | MAGAZINE--%>
                <tr>
                    <td colspan="3">
                        <jsp:include page="../WEB-INF/ComponentJSP/TopBarJSP/TopbarJSP.jsp"/>   
                    </td>
                </tr>
                <%--SEARCH BAR: SEARCH | CART--%>
                <tr >
                    <td id="search-bar" colspan="2">
                        <jsp:include page="../WEB-INF/ComponentJSP/TopBarJSP/SearchJSP.jsp"/>
                    </td>
                    <td id="cart-bar">
                        <jsp:include page="../WEB-INF/ComponentJSP/TopBarJSP/CartJSP.jsp"/>
                        <div id="updateNumberOrder" style="display: none">Order thành công!</div>
                    </td>
                </tr>
                <tr>
                    <%--SIDE NAVIGATOR --%>
                    <td id="nav-container">
                        <jsp:include page="../WEB-INF/ComponentJSP/SideBarJSP/SideNavigatorJSP.jsp"/>
                    </td>
                    <%--CONTENT --%>
                    
                    <td colspan="2">
                        <jsp:include page="../WEB-INF/ComponentJSP/ContentJSP/home-contentJSP.jsp"/>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <jsp:include page="../WEB-INF/ComponentJSP/FooterJSP/SitemapJSP.jsp"/>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <jsp:include page="../WEB-INF/ComponentJSP/FooterJSP/FooterJSP.jsp"/>
                    </td>
                </tr>  
                <%--COLUMN SPACING ROW--%>
                <tr>
                    <td width="215px"></td>
                    <td></td>
                    <td width="425px"></td>
                </tr>
            </table>
        </center>              
    </body> 
</html>
